Description:
NC checks whether the code conforms to the naming guidelines. Naming guidelines for Delphi are the following:
Check exception class names, is set.)Incorrect:
myObject = class
public
const max_size:integer = 10;
procedure myMethod();
end;
...
procedure myObject.myMethod();
var MyVar:integer;
...
Correct:
MyObject = class
public
const MaxSize:integer = 10;
procedure MyMethod();
end;
...
procedure myObject.myMethod();
var myVar:integer;
...
Incorrect:
ConversionException = class
...
end;
InvocationError = class(System.Exception)
...
end;
Correct:
ConversionError = calss
...
end;
InvocationException = class(System.Exception)
...
end;
Refactoring: